var testData = Array.from({length: 5000}, () => Math.round(Math.random() * 10) )

// console.log([...new Set(testData)])
console.log(Array.from(new Set(testData)))